<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            height: 1000px;
        }

        img {
            position: absolute;
        }
    </style>
</head>
<body>
<img src="1.jpg" alt="">
<script>
    document.addEventListener('mousemove', function (e) {
        
        var x = e.pageX;
        var y = e.pageY;
        var pic = document.querySelector('img');
        pic.style.left = x-80+'px';
        pic.style.top = y-120+'px';
    })
</script>
</body>
</html>
